<?=$this->load->view('public/v_html')?>
<title>找回密码</title>
<link rel="stylesheet" type="text/css"
	href="<?=base_url('css/common.css') ?>">
<link rel="stylesheet" type="text/css"
	href="<?=base_url('css/simple_form.css') ?>">
<link rel="stylesheet" type="text/css"
	href="<?=base_url('css/finished_page.css') ?>">
<script type="text/javascript" src="<?=base_url('js/tbk.js') ?>"></script>
<script type="text/javascript">
var check_url = "<?=site_url("public/image_c/check_db") ?>";
<?php if (isset($tjb_box)):?>
var tjb_box = "<?=$tjb_box ?>";
var vertify_url = "<?=site_url("public/image_c/check") ?>";
<?php endif;?>
</script>
<script type="text/javascript"
	src="<?=base_url('js/getpass/index.js') ?>"></script>
<script type="text/javascript"
	src="<?=base_url('js/getpass/common.js') ?>"></script>
<script type="text/javascript">
$("#vertify_code_change").live("click",function (){
	$("#vertify_code_img").attr('src','<?=site_url('public/image_c')?>')
})
</script>
</head>
<body screen_capture_injected="true">
	<header></header>
	<div id="wrapper">
		<a target="_blank" href="<?=site_url("tbk")?>"> <img alt="geili"
			title="geili" src="<?=base_url('images/logo/logo2.png') ?>">
		</a>
		<hgroup id="title_bar">
			<figcaption class="strong">找回密码</figcaption>
			<span id="prompt"><font class="red">*</font>请勿轻易关闭页面，关闭后您将需要重新申请找回密码流程！</span>
		</hgroup>
		<?php if($sta_getp == "getpass_index"):?>
		<form id="form" class="narrow"
			action="<?=site_url('public/getpass/getpassindex') ?>" method="post">
			<div id="lenged">请输入用户名 或 已验证的邮箱</div>
			<fieldset>
				<div class="simple_line">
					<input checked id="radio_type_username" class="input_radio"
						type="radio" name="index" value="usermail"> <label
						class="narrow strong" for="radio_type_username">用户名</label>
					<div class="simple_line_right">
						<input id="text_username"
							class="input_text valid_noempty valid_username" type="text"
							name="usermail" error_dom_id="text_username_error"
							valid_noempty_error="请输入用户名">
						<div id="text_username_error" class="error"></div>
					</div>
				</div>
				<div class="simple_line">
					<input id="radio_type_email" class="input_radio" type="radio"
						name="index" value="usermail"> <label class="narrow"
						for="radio_type_email">验证邮箱</label>
					<div class="simple_line_right">
						<input id="text_email"
							class="input_text valid_noempty valid_email text_disabled"
							type="email" maxlength="60" name="usermail"
							error_dom_id="text_email_error" valid_noempty_error="请输入验证邮箱"
							valid_email_error="验证邮箱格式有误" disabled="">
						<div id="text_email_error" class="error" style="display: none;"></div>
					</div>
				</div>
				<div class="hr_dashed"></div>
				<input name="tjb_mail" type="hidden" /> <input name="tjb_box"
					type="hidden" /> <input class="input_submit" type="submit"
					value="下一步">
			</fieldset>
		</form>
		<?php elseif ($sta_getp == "getpassindex"): ?>
		<form id="form" class="narrow"
			action="<?=site_url('Sendmail/mail') ?>" method="post">
			<div id="lenged">请选择如何找回您的密码</div>
			<fieldset>
				<div class="simple_line ie67fix8">
					<input checked id="radio_type_email" class="input_radio"
						type="radio" name="index" value="secureemail"> <label
						for="radio_type_email" class="strong">将重置密码链接发送至我的邮箱：<?=$tjb_mail ?></label>
				</div>
				<div id="choice_by_email_area"
					class="simple_line margin_top_negative hide choice_area"
					style="display: block;">
					<div class="radio_indent ie67fix7">
						<input id="text_email"
							class="input_text valid_noempty valid_email valid_email_over"
							type="email" maxlength="60" name="secureemail" value=""
							error_dom_id="text_email_error" valid_noempty_error="请输入验证邮箱"
							valid_email_error="验证邮箱格式有误">
						<div id="text_email_error" class="error error_x"></div>
						<div class="fade">请重复输入您的上述提示的邮箱地址</div>
					</div>
				</div>
				<div class="simple_line ie67fix8">
					<div class="radio_indent ie67fix7">
						<label for="text_vertify">验证码：</label> <input id="text_vertify"
							class="input_vertify valid_noempty valid_vertify" type="text"
							maxlength="4" name="verifycode" error_dom_id="text_vertify_error"
							valid_noempty_error="请输入验证码"> <img id="vertify_code_img"
							class="vertify_code_img ie67fix4"
							src="<?=site_url('public/image_c') ?>" alt="验证码" title="验证码"> <a
							style="cursor: pointer" id="vertify_code_change"
							class="small_em ie67fix5">看不清？</a>
						<div id="text_vertify_error" class="error error_remote"></div>
					</div>
				</div>
				<div class="hr_dashed"></div>
				<input class="input_submit" type="submit" value="下一步">
			</fieldset>
		</form>
		<?php elseif ($sta_getp == "getpasschoice"): ?>
		<section id="main">
			<p class="result">
				<span class="success strong"> 邮件已经发送到：<?=$tomail ?> </span>
			</p>
			<p class="fade">请您按照邮件中的相关说明进行操作</p>
		</section>
		<hgroup id="ext">
			<figcaption class="strong">没有收到电子邮件？</figcaption>
			<ol id="noemailrev_step">
				<li>请查看您的垃圾邮件文件夹中是否有来自geili0574@163.com的电子邮件。</li>
				<li>如果您仍找不到该电子邮件，请<input type="button" id="resendemail"
					class="resend" value="重新发送"> <span id="resendvcode_error"
					class="error error_line_narrow error_line_narrow2 error_remote6">发送失败，请重新发送</span>
				</li>
			</ol>
		</hgroup>
		<input id="code" type="hidden" name="code" value="<?=$code ?>" />
		<script type="text/javascript">
		var resendemail="<?=site_url('Sendmail/mail') ?>";
		</script>
		<script type="text/javascript"
			src="<?=base_url('js/getpass/finshed.js') ?>"></script>
		<?php elseif ($sta_getp == "getpassresetpwd"):?>
		<form id="form" class="narrow"
			action="<?=site_url('public/getpass/etpassresetpwd_2') ?>"
			method="post">
			<div id="lenged">&nbsp;</div>
			<fieldset>
				<div class="simple_line">
					<label class="middle" for="password">请输入新的密码：</label> <input
						id="password" class="input_text valid_noempty ie67fix3"
						type="password" name="password" error_dom_id="error_password"
						valid_noempty_error="请输入密码" autocomplete="off"> <span
						class="pwd_strength"> <span><span>强度：</span><span
							id="pwd_weak_word" class="weak_word">弱</span></span> <span
						class="pwd_stren_out"><span id="pwd_weakness"
							class="pwd_stren_inner strength_weak"></span></span>
					</span>
					<div id="password_des">密码长度6~14位，字母区分大小写</div>
				</div>
				<div class="simple_line">
					<span id="error_password" class="error error_allline"> </span>
				</div>
				<div class="simple_line">
					<label class="middle" for="re_password">确认密码：</label> <input
						id="re_password" class="input_text" type="password"
						name="verifypwd" autocomplete="off">
				</div>
				<div class="simple_line">
					<div id="error_repassword" class="error error_allline">密码与确认密码不一致</div>
				</div>
				<div class="hr_dashed"></div>
				<input type="hidden" name="verifyvstr" value="<?=$vstr ?>"><input
					class="input_submit" type="submit" value="下一步">
			</fieldset>
		</form>
		<?php elseif ($sta_getp == "success"):?>
		<section id="main">
			<p class="result">
				<span class="success strong"> 您的密码已重置，请牢记！ </span>
			</p>
			<p>
				<a href="<?=site_url("public/signin/into/") ?>" class="small_em"><span
					id="timer">5</span> 秒后自动返回登录页</a>
			</p>
		</section>
		<script type="text/javascript">
	var tid ;
	settim(6);
	function settim(i){
		i--;
		$("#timer").text(i);
		if(i==0){
			clearTimeout(tid);
			top.location='<?=site_url("public/signin/into/")?>';
		}
		tid = setTimeout("settim("+i+")",1000);
	}
	</script>
		<?php endif;?>

	</div>
	<?php if ($sta_getp == "getpassresetpwd"):?>
	<script type="text/javascript"
		src="<?=base_url('js/getpass/resepwd.js') ?>"></script>
	<?php endif;?>
	<footer>
		<span>©2012&nbsp;GeiLi</span>
	</footer>
</body>
</html>